package com.iscas.tech.vo;

import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;

/**
 * 科技成果图片信息表
 *
 * @author yangyi
 * @since 2020-10-26
 */
public class AtStpicQueryVo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("所属类型（1:评估价值 2:技术图片 3:成熟度证明 4:水平评价）")
    private Integer pType;

    @ApiModelProperty("图片地址")
    private String pUrl;

    @ApiModelProperty("科技成果ID")
    private Integer stId;

    @ApiModelProperty("所属功能名称")
    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getpType() {
        return pType;
    }

    public void setpType(Integer pType) {
        this.pType = pType;
        switch (pType) {
            case 1:
                name = "evaluationValue";
                break;
            case 2:
                name = "techPic";
                break;
            case 3:
                name = "proofOfMaturity,";
                break;
            case 4:
                name = "levelEvaluation";
                break;
            default:
                break;
        }
    }

    public String getpUrl() {
        return pUrl;
    }

    public void setpUrl(String pUrl) {
        this.pUrl = pUrl;
    }

    public Integer getStId() {
        return stId;
    }

    public void setStId(Integer stId) {
        this.stId = stId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        switch (name) {
            case "evaluationValue":
                pType = 1;
                break;
            case "techPic":
                pType = 2;
                break;
            case "proofOfMaturity":
                pType = 3;
                break;
            case "levelEvaluation":
                pType = 4;
                break;
            default:
                break;
        }
    }
}
